#if !defined(AFX_MANUALLIFTERDLG_H__D3DE0D0A_3629_46F6_8540_50AC2EF12D39__INCLUDED_)
#define AFX_MANUALLIFTERDLG_H__D3DE0D0A_3629_46F6_8540_50AC2EF12D39__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// ManualLIfterDlg.h : header file
//

#include "Util\MinButton.h"
#include "Util\MinLabel.h"
// Control Layer
class ILifter;
class IStateTransfer;

// Process Layer
class IAutoManager;
class ITrsLifter;
class ITrsTransfer;
// Common Layer
class CDMControlCenter;
class CLifterPosData;
class CErrorCodeData;
class CUVLightDoc;
class CSystemData;
class CModelData;
#define MAX_LF_PUSH_SW		10
/////////////////////////////////////////////////////////////////////////////
// CManualLIfterDlg dialog

class CManualLIfterDlg : public CDialog
{
private:
	IAutoManager* m_lnkAutoManager;
	ILifter* m_lnkLifter;
	ITrsLifter* m_lnkTrsLifter;
	CLifterPosData* m_lnkLifterPosData;
	IStateTransfer* m_lnkStateTransfer;

	CSystemData* m_lnkSystemData;
	CModelData* m_lnkModelData;

	void ErrorDisplay(int nErrorCode);
	BOOL m_bErrorDisplay;
	CErrorCodeData* m_lnkErrorCodeData;

	BOOL m_bOldStatusPush[MAX_LF_PUSH_SW];
	CMinLabel	m_sRFIDData;
	CMinLabel	m_sRFIDData2;
	CMinLabel	m_sUpCassetteNo;
	CMinLabel	m_sLowCassetteNo;

	BOOL StartInitFlag;
	int m_iUpCassetteNo;
	int m_iLowCassetteNo;
// Construction
public:
	UINT m_TimerID;
	BOOL m_TimerInitFlag;

	CManualLIfterDlg(IAutoManager* pAM, CDMControlCenter* pDMCC,CWnd* pParent = NULL);   // standard constructor

// Dialog Data
	//{{AFX_DATA(CManualLIfterDlg)
	enum { IDD = IDD_MANU_LIFTER };
	CMinButton	m_bPupperMove;
	CMinButton	m_bLowerMove;
	CMinButton	m_bExit;
	CMinButton	m_bUpFor;
	CMinButton	m_bUpCassUp;
	CMinButton	m_bUpCassDown;
	CMinButton	m_bUpBack;
	CMinButton	m_bRFID;
	CMinButton	m_bRFID2;
	CMinButton	m_bLowFor;
	CMinButton	m_bLowCassUp;
	CMinButton	m_bLowCassDown;
	CMinButton	m_bLowBack;
	CMinButton	m_bEVOpen;
	CMinButton	m_bEVClose;
	CMinButton	m_bAGVCoverOpen;
	CMinButton	m_bAGVCoverClose;
	CMinButton  m_bOHTFor;
	CMinButton  m_bOHTBack;
	//}}AFX_DATA


// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CManualLIfterDlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	
	CUVLightDoc* m_pDoc;
	IAutoManager* m_pAM;
	
	void ButtonInitial();
	void ButtonUpdate();
	// Generated message map functions
	//{{AFX_MSG(CManualLIfterDlg)
	afx_msg void OnEvShutterOpen();
	afx_msg void OnEvShutterClose();
	afx_msg void OnAgvCoverOpen();
	afx_msg void OnAgvCoverClose();
	afx_msg void OnUpFor();
	afx_msg void OnUpBack();
	afx_msg void OnLowFor();
	afx_msg void OnLowBack();
	afx_msg void OnUpCassetteUp();
	afx_msg void OnUpCassetteDown();
	afx_msg void OnLowCassetteUp();
	afx_msg void OnLowCassetteDown();
	afx_msg void OnRfid();
	virtual void OnCancel();
	virtual BOOL OnInitDialog();
	afx_msg void OnTimer(UINT nIDEvent);
	afx_msg void OnDestroy();
	afx_msg void OnUpperMove();
	afx_msg void OnLowerMove();
	afx_msg void OnRfid2();
	afx_msg void OnOhtFor();
	afx_msg void OnOhtBack();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_MANUALLIFTERDLG_H__D3DE0D0A_3629_46F6_8540_50AC2EF12D39__INCLUDED_)
